package com.atguigu.gulimall.gulimall.auth.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.gulimall.auth.vo.SocialUser;
import com.atguigu.gulimall.gulimall.auth.vo.UserLoginVo;
import com.atguigu.gulimall.gulimall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author phil
 * @create 2022-01-12 16:58
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {
    @PostMapping("member/member/register")
    public R register(@RequestBody UserRegisterVo vo);

    @PostMapping("member/member/login")
    public R login(@RequestBody UserLoginVo vo);

    @PostMapping("member/member/oauth2/login")
    public R oauthLogin(@RequestBody SocialUser socialUserVo);

}
